{extend name="public:member" /}

{block name="content"}
<div class="page-header">
	<h1>
		{$breadcrumb2}
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$crumbs}
		</small>
	</h1>
</div>	
<div class="page-header">
	<a href="{:url('Account/add_address')}" class="btn btn-primary">新增</a>
</div>		
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>收货人</th> 
						<th>地区</th> 
						<th>地址</th>	
						<th>联系电话</th>					
						<th>操作</th>	
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="v" empty="$empty"}
						<tr>						
							<td>
								{$v.name}
							</td>
							<td>
								<?php echo get_area_name($v['province_id']).','.get_area_name($v['city_id']).','.get_area_name($v['country_id']); ?>
							</td>
							<td>{$v.address}</td>
							<td>{$v.telephone}</td>
							<td>
								<a  class="btn btn-xs btn-info" href='{:url("Account/edit_address",array("id"=>$v["address_id"]))}'>
									<i class="fa fa-edit bigger-120"></i>
								</a> 
								<a class="delete btn btn-xs btn-danger" href='{:url("Account/del_address",array("id"=>$v["address_id"]))}' >
									<i class="fa fa-trash bigger-120"></i>
								</a>
							</td>
						</tr>
						{/volist}	
						
						<tr>
							<td colspan="20" class="page">{$list->render()}</td>
						</tr>
				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}
